using System;
using System.Collections.Generic;
using System.Text;

namespace Fieldbook.Entities
{
	public class Appuser
	{
		private long? userid;
		private Role role;
		private string username;
		private string password;
		private string jmbg;
		private string firstname;
		private string lastname;
		private string streetname;
		private string streetnumber;
		private string postalcode;
		private string city;
		private string emailadress;
        private bool receiveMail;
		private string phoneno;
		private DateTime? birthdate;
		private Status statusid;

		public long? Userid
		{
			get { return userid; }
			set { this.userid = value; }
		}
        public Role Roleid
		{
			get { return this.role; }
			set { this.role = value; }
		}
		public string Username
		{
			get { return username; }
			set { this.username = value; }
		}
		public string Password
		{
			get { return password; }
			set { this.password = value; }
		}
		public string Jmbg
		{
			get { return jmbg; }
			set { this.jmbg = value; }
		}
		public string Firstname
		{
			get { return firstname; }
			set { this.firstname = value; }
		}
		public string Lastname
		{
			get { return lastname; }
			set { this.lastname = value; }
		}
		public string Streetname
		{
			get { return streetname; }
			set { this.streetname = value; }
		}
		public string Streetnumber
		{
			get { return streetnumber; }
			set { this.streetnumber = value; }
		}
		public string Postalcode
		{
			get { return postalcode; }
			set { this.postalcode = value; }
		}
		public string City
		{
			get { return city; }
			set { this.city = value; }
		}
		public string Emailadress
		{
			get { return emailadress; }
			set { this.emailadress = value; }
		}
        public bool ReceiveMail
        {
            get { return receiveMail; }
            set { receiveMail = value; }
        }
		public string Phoneno
		{
			get { return phoneno; }
			set { this.phoneno = value; }
		}
		public DateTime? Birthdate
		{
			get { return birthdate; }
			set { this.birthdate = value; }
		}
		public Status Statusid
		{
			get { return statusid; }
			set { this.statusid = value; }
		}

        public enum Role : int
        {
            SuperAdmin,
            Admin,
            User,
            Guest
        }

        public enum Status : int
        {
            New,
            Active,
            NotRegistered,
            NoLongerUser
        }

	}
}
